// 用户路由
var express = require('express');
var NewsRouter = express.Router();
const NewsController = require('../../controllers/admin/NewsController');

NewsRouter.post('/adminApi/news/add', NewsController.add); // 添加
NewsRouter.post('/adminApi/news/edit', NewsController.edit); // 编辑
NewsRouter.post('/adminApi/news/publish', NewsController.publish); // 发布
NewsRouter.post('/adminApi/news/list', NewsController.list); // 列表
NewsRouter.post('/adminApi/news/delete', NewsController.delete); // 删除
NewsRouter.post('/adminApi/news/findById', NewsController.findById); // 查询详情
NewsRouter.post('/adminApi/news/publish', NewsController.publish); // 发布
NewsRouter.post('/adminApi/news/isTop', NewsController.isTop); // 发布

module.exports = NewsRouter;
